import request from '@/utils/request';

/**
  查询问答列表
 */
export const getInquirysList = (params) => {
  return request('/admin/inquirys', { params });
};
/**
 修改问答状态
 */
export const editInquirysStatus = (id) => {
  return request.patch(`/admin/inquirys/${id}/status`);
};
/**
 修改问答推荐
 */
export const editInquirysRecommend = (id) => {
  return request.patch(`/admin/inquirys/${id}/recommend`);
};
/**
 修改问答推荐
 */
export const editInquirysView = (id) => {
  return request.patch(`/admin/inquirys/${id}/view`);
};
/**
 修改问答
 */
export const editInquirys = (id, data) => {
  return request.put(`/admin/inquirys/${id}`, { data });
};
/**
 删除问答
 */
export const delInquirys = (id) => {
  return request.delete(`/admin/inquirys/${id}`);
};
/**
 查询问答详情
 */
export const getInquirysDtail = (id) => {
  return request(`/admin/inquirys/${id}`);
};
